package com.village.friend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.village.friend.entity.User;
import com.village.friend.entity.UserLike;
import com.village.friend.mapper.UserLikeMapper;
import com.village.friend.service.UserLikeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户关注表 服务实现类
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@Service
public class UserLikeServiceImpl extends ServiceImpl<UserLikeMapper, UserLike> implements UserLikeService {
    @Override
    public List<User> list(Integer userId, Integer offset, Integer limit) {
        return baseMapper.list(userId, offset, limit);
    }

    @Override
    public Integer listCount(Integer userId) {
        return baseMapper.listCount(userId);
    }

    @Override
    public List<User> listBeLike(Integer userId, Integer offset, Integer limit) {
        return baseMapper.listBeLike(userId, offset, limit);
    }

    @Override
    public Integer listCountBeLike(Integer userId) {
        return baseMapper.listCountBeLike(userId);
    }
}
